package edu.sctu.zhoudie.mouth201505.day20150526.canteen;


import java.util.HashMap;

/**
 * Created by user08 on 2015/5/27.
 */
public class MyData {

    public HashMap<Integer,Window> windowDishes(int size){
        HashMap<Integer,Window> windowDishesHashMap = new HashMap<Integer,Window>();
        Window window = new Window();
        for (int i = 0; i < size; i++) {

            Dish dishes = new Dish();

            window.number = 101+i;
            window.queuenumber = (int)(Math.random()*20);

            dishes.name = "番茄炒蛋"+i;
            dishes.price=(int)(Math.random()*10);

            if(dishes.price>5){
                dishes.category = "荤菜";

            }else {
                dishes.category = "素菜";
            }

            windowDishesHashMap.put(i,window);
        }
        return windowDishesHashMap;
    }
}
